import {getCarts} from "../network/cart";

const actions = {
    updateCart(context) {
        getCarts().then(res => {
            context.commit('addCart', {count: res.data.length || 0})
        })
    }
}
export default actions